<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<a href="/type/toAddType">添加美食</a>
		<table border="1">
			<tr>
				<td>编号</td>
				<td>名称</td>
				<td>图片</td>
				<td>分类</td>
				<td>编辑</td>
			</tr>
			<tr th:each="food:${foodList}">
				<td th:text="${food.fid}"></td>
				<td th:text="${food.fname}"></td>
				<td><img src="../images/food4.jpg" width="50" height="50"/></td>
				<td th:each="type:${typeList}" th:if="${food.tid==type.tid}">[(${type.tname})]</td>
				<td><a href="">删除</a></td>
			</tr>
		</table>
	</body>
</html>
